

$(document).ready(function(){
	//淡入淡出
//	$(".portalName").click(function(){
//		$(".portalValue").css("display","none");
//		$(this).next(".portalValue").css("display","block");
//		
//	});
	
//	$(".portalName").click(function(){
//		$(".portalName").attr("class","portalName");
//		$(this).attr("class","portalName text-success");
//	});
	var selectedClass = "portalValue text-warning selected";
	var successColor = "#55B055";
	
	$(".portalName").mouseover(function(){
		$(this).css("color",successColor);
	});
	$(".portalName").mouseout(function(){
		$(this).css("color","");
	});
	$(".portalValue").mouseover(function(){
		$(this).css("background-color",successColor).css("color","white").css("font-weight","bold");
	});
	$(".portalValue").mouseout(function(){
//		alert($(this).attr("class"));
		if($(this).attr("class") != selectedClass){
			$(this).css("background-color","white").css("color","gray").css("font-weight","normal");
		}
	});
	$(".portalValue").click(function(){
		$(".portalValue").attr("class","portalValue").css("color","gray").css("background-color","white").css("font-weight","normal");
		$(this).css("color",successColor).attr("class",selectedClass);
		$(".portalValue[class='portalValue text-warning selected']").css("background-color",successColor).css("color","white").css("font-weight","bold");
		
	});
	
});